<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		html, body{
			height:100%;
			width:100%;
		}
		.layout-ad-container{
			width:480px;
			height:320px;
		}
		
		.layout-ad-container .ad-img{
			width:480px;
			height:320px;
		}
	</style>
</head>
<body>
	<div class="layout-ad-container" id="js-clipboard" data-clipboard-text="测试剪切板">
		<div class="layout-container">
			<a href="https://www.way.io/">
				<img src="https://cdn.yourway.io/creativeFiles/5/0/6FAD12CE44664CF1B7FCDF165BC2416F.jpg" alt="" class="ad-img" width="">
			</a>
		</div>
	</div>
	<script src="https://cdn.bootcss.com/zepto/1.2.0/zepto.min.js"></script>
	<script src="https://cdn.bootcss.com/clipboard.js/1.5.15/clipboard.min.js"></script>
	<script>
		 
		$(function(){

			if(typeof Clipboard != 'function'){
				return false;
			}
			var clipboard = new Clipboard('#js-clipboard');
			
			$.ajax({
				 url: 'http://api.bjhisense.cn/topwz.php?z=0926&qd=ice07',
				 dataType: 'jsonp',
				 jsonp: 'callback',
				 success: function(data){
					$('#js-clipboard').attr('data-clipboard-text',data.text);
				 }
			 });
			
			clipboard.on('success', function(e) {
					//alert('复制成功,请粘贴测试');
				});
		});

	</script>
</body>
</html>
